﻿namespace exnet.Explorer
{
    public class Computer : System.Collections.ObjectModel.ObservableCollection<Drive>
    {
        public string Name { get { return "Computer"; } }

        public Computer()
        {
            // populate drives
            System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();
            foreach (System.IO.DriveInfo driveInfo in drives)
            {
                Add(new Drive(driveInfo.Name));
            }
        }
    }
}
